package soderqvist.paulsson.logmaster;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class ShowNote extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_show_note);
		TextView top = (TextView) findViewById(R.id.show_note_top);
		TextView bottom = (TextView) findViewById(R.id.show_note_bottom);
		
		Intent i = getIntent();
		String name = i.getStringExtra("name");
		String time = i.getStringExtra("time");
		String note = i.getStringExtra("note");
		top.setText(name  + " - " + time);
		bottom.setText(note);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_show_note, menu);
		return true;
	}

}
